import request from '@/utils/request'

// 查询申请进度列表
export function listProgress(query) {
  return request({
    url: '/merchant/progress/list',
    method: 'get',
    params: query
  })
}

// 查询申请进度详细
export function getProgress(id) {
  return request({
    url: '/merchant/progress/' + id,
    method: 'get'
  })
}

// 新增申请进度
export function addProgress(data) {
  return request({
    url: '/merchant/progress',
    method: 'post',
    data: data
  })
}

// 修改申请进度
export function updateProgress(data) {
  return request({
    url: '/merchant/progress',
    method: 'put',
    data: data
  })
}

// 删除申请进度
export function delProgress(id) {
  return request({
    url: '/merchant/progress/' + id,
    method: 'delete'
  })
}

// 导出申请进度
export function exportProgress(query) {
  return request({
    url: '/merchant/progress/export',
    method: 'get',
    params: query
  })
}

// 查询商户申请进度详细
export function getMerchantProgress(data) {
  return request({
    url: '/merchant/progress/getMerchantProgress',
    method: 'post',
    data: data
  })
}

// 查询门店申请进度详细
export function getStoreProgress(data) {
  return request({
    url: '/merchant/progress/getStoreProgress',
    method: 'post',
    data: data
  })
}